$(document).ready(function(){
	$("#mainboardId").on("change", function(){
		var id = document.getElementById("mainboardId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, mainboard);
	});
	$("#cpuId").on("change", function(){
		var id = document.getElementById("cpuId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, cpu);
	});
	$("#coolerId").on("change", function(){
		var id = document.getElementById("coolerId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, cooler);
	});
	$("#memoryId").on("change", function(){
		var id = document.getElementById("memoryId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, memory);
	});
	$("#graphicId").on("change", function(){
		var id = document.getElementById("graphicId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, graphic);
	});
	$("#hddId").on("change", function(){
		var id = document.getElementById("hddId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, hdd);
	});
	$("#ssdId").on("change", function(){
		var id = document.getElementById("ssdId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, ssd);
	});
	$("#dvdId").on("change", function(){
		var id = document.getElementById("dvdId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, dvd);
	});
	$("#soundId").on("change", function(){
		var id = document.getElementById("soundId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, sound);
	});
	$("#powerId").on("change", function(){
		var id = document.getElementById("powerId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, power);
	});
	$("#caseId").on("change", function(){
		var id = document.getElementById("caseId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, case1);
	});
	$("#osId").on("change", function(){
		var id = document.getElementById("osId").value;
		$.getJSON("/droowa/product/getCompleteJSON.do", {"id":id}, os);
	});
});
function mainboard(data){
	$("#td1").html(data.complete[0].MAINBOARDNAME);
}
function cpu(data){
	$("#td2").html(data.complete[0].CPUNAME);
}
function cooler(data){
	$("#td3").html(data.complete[0].COOLERNAME);
}
function memory(data){
	$("#td4").html(data.complete[0].MEMORYNAME);
}
function graphic(data){
	$("#td5").html(data.complete[0].GRAPHICNAME);
}
function hdd(data){
	$("#td6").html(data.complete[0].HDDNAME);
}
function ssd(data){
	$("#td7").html(data.complete[0].SSDNAME);
}
function dvd(data){
	$("#td8").html(data.complete[0].DVDNAME);
}
function sound(data){
	$("#td9").html(data.complete[0].SOUNDNAME);
}
function power(data){
	$("#td10").html(data.complete[0].POWERNAME);
}
function case1(data){
	$("#td11").html(data.complete[0].CASENAME);
}
function os(data){
	$("#td12").html(data.complete[0].OSNAME);
}